package com.example.user;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@Slf4j
public class StockSentinelApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(StockSentinelApplication.class, args);
        String port = applicationContext.getEnvironment().getProperty("server.port");
        log.info("启动成功，端口：{}", port);
    }

}
